home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995…tember: Reference Library / Dev.CD Sep 95 RL / Dev.CD Sep 95 RL.toast / mac / Technical Documentation / develop / develop Issue 22 code / PCI Driver Sample / NCR_DriverProject / MakeFile < prev    next >
Encoding:
Makefile  |  1995-04-08  |  3.5 KB  |  148 lines  |  [TEXT/MPS ]

  1. #
  2. # NCRScsiDriver
  3. # Copyright © 1994-95 Apple Computer Inc. All rights reserved.
  4. # This MakeFile builds the NCRDriver sample PCI device driver and
  5. # the resource file needed for the MetroWerks compilation.
  6. # Note: all compilations are Power PC Native.
  7. #
  8. Src                =    ":Src:"            # Sources in Src folder
  9. Obj                =    ":Obj:"            # Objects in Obj folder
  10. #
  11. # PCICIncludes    Defined by UserStartup•PCI in System Preferences
  12. # PCILibraries    Defined by UserStartup•PCI in System Preferences
  13. #
  14.  
  15. Objects            =                            ∂
  16.         {Obj}DriverDoDriverIO.c.o            ∂
  17.         {Obj}DriverDebugSupport.c.o            ∂
  18.         {Obj}DriverGestaltHandler.c.o        ∂
  19.         {Obj}DriverPCIBusUtilities.c.o        ∂
  20.         {Obj}DriverPrepMemoryInit.c.o        ∂
  21.         {Obj}DriverPrepRequest.c.o            ∂
  22.         {Obj}GetDeviceLogicalAddress.c.o    ∂
  23.         {Obj}GetDevicePowerInfo.c.o            ∂
  24.         {Obj}InitializeInterrupts.c.o        ∂
  25.         {Obj}LogLibrary.c.o                    ∂
  26.         {Obj}ManageNVRAMProperty.c.o        ∂
  27.         {Obj}NameRegistryUtilities.c.o        ∂
  28.         {Obj}NCRChipManager.c.o                ∂
  29.         {Obj}NCRRunScript.c.o                ∂
  30.         {Obj}NCRScriptManager.c.o            ∂
  31.         {Obj}NCRStartScript.c.o                ∂
  32.         {Obj}PrepMemoryUtilities.c.o        ∂
  33.         {Obj}PublishDriverDebugInfo.c.o        ∂
  34.         {Obj}PublishInitFailureMsg.c.o
  35.  
  36. Headers            =                            ∂
  37.         {Src}NCR53C825.h                    ∂
  38.         {Src}NCRDriver.h                    ∂
  39.         {Src}NCRDriverPrivate.h                ∂
  40.         {Src}NCRDriverPrototypes.h            ∂
  41.         {Src}LogLibrary.h
  42.  
  43. #
  44. # Directory Dependencies. Sources are in the {Src} subdirectory,
  45. # Objects in the {Obj} subdirectory.
  46. #
  47. {Obj}                ƒ    {Src}
  48.  
  49. #
  50. # Compiler option configuration
  51. #
  52. SymOpt                  = ON
  53. PPCCOpt                 = off
  54.  
  55. .c.o ƒ .c                                        ∂
  56.         {Headers}
  57.     PPCC                                        ∂
  58.         -appleext on                            ∂
  59.         -sym {SymOpt}                            ∂
  60.         -opt {PPCCOpt}                            ∂
  61.         -shared_lib_export on                    ∂
  62.         -w off                                    ∂
  63.         -D MPW=1                                ∂
  64.         -D NoASM                                ∂
  65.         -D RS6000=0                                ∂
  66.         -D powerpc=1                            ∂
  67.         -D interface_glue                        ∂
  68.         -i "{PCICIncludes}"                        ∂
  69.         -export_list {Obj}NotUsedExportList        ∂
  70.         -o {TargDir}{Default}.c.o                ∂
  71.         {DepDir}{Default}.c
  72.  
  73. #
  74. # Build the MetroWerks resources
  75. #
  76. MetroWerks ƒ                                    ∂
  77.     "NCRDriver.Δ.rsrc"
  78.         echo "MetroWerks resources created"
  79.  
  80. #
  81. # Build the Driver (MPW PowerPC native)
  82. #
  83. "NCRDriver MPW"    ƒƒ                                ∂
  84.             MetroWerks                            ∂
  85.             Makefile                            ∂
  86.             {Headers}                            ∂
  87.             {Objects}
  88.     echo "" >{Obj}NotUsedExportList
  89.     PPCLink                                        ∂
  90.         -sym {SymOpt}                            ∂
  91.         -xm s                                    ∂
  92.         -main DoDriverIO                        ∂
  93.         -export DoDriverIO                        ∂
  94.         -export TheDriverDescription            ∂
  95.         -export CFMInitialize                    ∂
  96.         -export CFMTerminate                    ∂
  97.         {Objects}                                ∂
  98.         "{PCILibraries}"DriverServicesLib        ∂
  99.         "{PCILibraries}"DriverLoaderLib            ∂
  100.         "{PCILibraries}"NameRegistryLib            ∂
  101.         "{PCILibraries}"PCILib                    ∂
  102.         "{PPCLibraries}"PPCCRuntime.o            ∂
  103.         -o {Obj}NCRDriver.xcoff
  104.     MakePEF                                        ∂
  105.         {Obj}NCRDriver.xcoff                    ∂
  106.         -b                                        ∂
  107.         -i CFMInitialize                        ∂
  108.         -t CFMTerminate                            ∂
  109.         -l "{PCILibraries}"DriverServicesLib    ∂
  110.         -l "{PCILibraries}"NameRegistryLib        ∂
  111.         -l "{PCILibraries}"PCILib                ∂
  112.         -o {targ}                                ∂
  113.         -ft ndrv -fc PSSD
  114.  
  115. "NCRDriver MPW"    ƒƒ                                ∂
  116.             Makefile                            ∂
  117.             {Headers}                            ∂
  118.             {Src}NCRDriver.r                    ∂
  119.             "NCRDriverIcons.rsrc"
  120.     Rez                                            ∂
  121.         -o {targ}                                ∂
  122.         -append                                    ∂
  123.         -t ndrv                                    ∂
  124.         -c PSSD                                    ∂
  125.         -i "{CIncludes}"                        ∂
  126.         -i "{RIncludes}"                        ∂
  127.         -d MPW=1                                ∂
  128.         {Src}NCRDriver.r
  129.  
  130. #
  131. # This builds a project resource file for the
  132. # Metrowerks environment.
  133. #
  134. "NCRDriver.Δ.rsrc" ƒ                            ∂
  135.             Makefile                            ∂
  136.             {Headers}                            ∂
  137.             {Src}NCRDriver.r                    ∂
  138.             "NCRDriverIcons.rsrc"
  139.         Rez                                        ∂
  140.             -o {targ}                            ∂
  141.             -append                                ∂
  142.             -t rsrc                                ∂
  143.             -c RSED                                ∂
  144.             -i "{CIncludes}"                    ∂
  145.             -i "{RIncludes}"                    ∂
  146.             -d MPW=1                            ∂
  147.             {Src}NCRDriver.r
  148.